const htmlWebpackPlugin = require('html-webpack-plugin')
const path =require('path')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
//
console.log(path.join(__dirname,'list')+"111")

module.exports={
    entry:{
        main:'./src/main.js'
    },
    output:{
        filename: "./build.js",
        path:path.join(__dirname,'dist')
    },
    devServer: {
        inline:true,
        // host:'192.168.43.213',
        port:8081
    },
    module:{
        rules:[
            {
                test:/\.css$/,
                loader:'style-loader!css-loader'
            },
            {
                test:/\.js$/,
                loader:'babel-loader',
                exclude:/node_module/,
            },{
                test:/\.vue$/,
                loader:'vue-loader',
            },
            {
                test: /\.(jpg|png|jpe?g|gif|svg)(\?.*)?$/, //
                loader: 'url-loader',
                options: {
                    limit: 10000,

                }
            }
        ],

    },
    plugins:[
        new htmlWebpackPlugin({
            template:'./src/index.html',
        }),
        new VueLoaderPlugin()
    ]
}